package sy.controller.demo;

import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import sy.controller.base.BaseController;
import sy.model.demo.DemoCompany;
import sy.pageModel.base.PageResult;
import sy.service.base.BaseService;

@Controller
@RequestMapping("/demoCompanyController")
public class DemoCompanyController extends BaseController<DemoCompany, Long> {

	@Resource(name = "demoCompanyService")
	@Override
	public void setService(BaseService<DemoCompany, Long> service) {
		super.service = service;
	}

	@RequestMapping("/find")
	@ResponseBody
	public PageResult find(HttpServletRequest request) {
		return super.find(request);
	}

}
